import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = 
[
  {
    path:"/",
    name:"index",
    component:()=>import("../views/index.vue")
  },
  {
    path:"/login",
    name:"login",
    component:()=>import("../views/login.vue")
  },
  {
    path:"/regedit",
    name:"regedit",
    component:()=>import("../views/regedit.vue")
  },
  {
    path:"/infom/:goodsId",
    name:"infom",
    component:()=>import("../views/infom.vue"),
    props:true
  },
  {
    path:"/shopCar",
    name:"shopCar",
    component:()=>import("../views/shopCar.vue")
  },
  {
    path:"/category",
    name:"category",
    component:()=>import("../views/category.vue")
  },
  {
    path:"/myView",
    name:"myView",
    component:()=>import("../views/myView.vue")
  },
  
  {
    path:"/more",
    name:"more",
    component:()=>import("../views/more.vue")
  },
  {
      path: '/inf2',
      name: 'inf2',
      component: () => import('../views/inf2.vue'),
  },
  
]

const router=new VueRouter({
    routes
})

export default router